<template>
  <div class="x-panel" :style="panelStyle">
    <slot></slot>
  </div>
</template>

<script lang="ts" setup>
import { computed } from 'vue'

const props = withDefaults(
  defineProps<{
    padding?: string
  }>(),
  {
    padding: '3px'
  }
)
const panelStyle = computed(() => {
  return {
    padding: props.padding
  }
})
</script>

<style lang="scss">
.x-panel {
  box-sizing: border-box;
  border: solid 1px var(--ep-border-color);
}
</style>
